package com.youi.entity;

import java.util.Date;

import com.youi.common.DelStatus;

import java.io.Serializable;


/**
 * 订单分佣信息
 * @author XJY
 */
public class Orderprofitdetail implements Serializable {

	private Long id;							//ID
	private Date gmtCreated;					//创建时间
	private Integer delStatus;					//删除状态（0否 1是）
	private Date gmtModify;					    //最后修改时间
	private Integer type;					    //订单类型(0顶级团长分佣 1二级团长分佣 2平台分佣)
	private String orderNo;					    //订单号
	private Double orderAmount;					//订单金额
	private Double commission;					//分佣总金额(该字段弃用)
	private Long leaderId1;						//分佣用户1id
	private String firstUser;					//分佣用户1
	private Double firstAmount;					//分佣金额1
	private Long leaderId2;						//分佣用户2id
	private String secondUser;					//分佣用户2
	private Double secondAmount;				//分佣金额2
	private Double platAmount;					//平台分佣金额
	private Long merchantId;					//商家id
	private Double merAmount;					//商家分佣金额
	private Double serviceCharge;				//手续费

    public Orderprofitdetail(){

    }

    public Orderprofitdetail(Long id,Date gmtCreated,Integer delStatus,Date gmtModify) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
    }

    public Orderprofitdetail(Integer type,String orderNo,Double orderAmount) {
        this.gmtCreated=new Date();
        this.delStatus=DelStatus.NODEL;
        this.gmtModify=gmtCreated;
        this.type=type;
        this.orderNo=orderNo;
        this.orderAmount=orderAmount;
     }

    public Orderprofitdetail(Integer type,String orderNo,Double orderAmount,Double commission,Long leaderId1,String firstUser,
    Double firstAmount,Long leaderId2,String secondUser,Double secondAmount,Double platAmount,Long merchantId,Double merAmount
    ,Double serviceCharge) {
       this.type=type;
       this.orderNo=orderNo;
       this.orderAmount=orderAmount;
       this.commission=commission;
       this.leaderId1=leaderId1;
       this.firstUser=firstUser;
       this.firstAmount=firstAmount;
       this.leaderId2=leaderId2;
       this.secondUser=secondUser;
       this.secondAmount=secondAmount;
       this.platAmount=platAmount;
       this.merchantId=merchantId;
       this.merAmount=merAmount;
       this.serviceCharge=serviceCharge;
    }


	public void setId(Long id){
		this.id=id;
	}

	public Long getId(){
		return id;
	}

	public void setGmtCreated(Date gmtCreated){
		this.gmtCreated=gmtCreated;
	}

	public Date getGmtCreated(){
		return gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setType(Integer type){
		this.type=type;
	}

	public Integer getType(){
		return type;
	}

	public void setOrderNo(String orderNo){
		this.orderNo=orderNo;
	}

	public String getOrderNo(){
		return orderNo;
	}

	public void setOrderAmount(Double orderAmount){
		this.orderAmount=orderAmount;
	}

	public Double getOrderAmount(){
		return orderAmount;
	}

	public void setCommission(Double commission){
		this.commission=commission;
	}

	public Double getCommission(){
		return commission;
	}

	public void setFirstUser(String firstUser){
		this.firstUser=firstUser;
	}

	public String getFirstUser(){
		return firstUser;
	}

	public void setFirstAmount(Double firstAmount){
		this.firstAmount=firstAmount;
	}

	public Double getFirstAmount(){
		return firstAmount;
	}

	public void setSecondUser(String secondUser){
		this.secondUser=secondUser;
	}

	public String getSecondUser(){
		return secondUser;
	}

	public void setSecondAmount(Double secondAmount){
		this.secondAmount=secondAmount;
	}

	public Double getSecondAmount(){
		return secondAmount;
	}

	public void setPlatAmount(Double platAmount){
		this.platAmount=platAmount;
	}

	public Double getPlatAmount(){
		return platAmount;
	}

	public void setMerAmount(Double merAmount){
		this.merAmount=merAmount;
	}

	public Double getMerAmount(){
		return merAmount;
	}

	public Long getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(Long merchantId) {
		this.merchantId = merchantId;
	}

	public Long getLeaderId1() {
		return leaderId1;
	}

	public void setLeaderId1(Long leaderId1) {
		this.leaderId1 = leaderId1;
	}

	public Long getLeaderId2() {
		return leaderId2;
	}

	public void setLeaderId2(Long leaderId2) {
		this.leaderId2 = leaderId2;
	}

	public Double getServiceCharge() {
		return serviceCharge;
	}

	public void setServiceCharge(Double serviceCharge) {
		this.serviceCharge = serviceCharge;
	}

}
